From: YAMAMOTO Mitsuharu Date: Fri, 26 Jan 2007 08:36:18 +0000 (+0000) Subject: (interrupt_input_blocked): Declare volatile. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~2669 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a71dc4d280c539b73757aea6c4c2397312efe514;p=emacs.git (interrupt_input_blocked): Declare volatile. --- diff --git a/src/blockinput.h b/src/blockinput.h index fcaa64723bc..468f0e0c762 100644 --- a/src/blockinput.h +++ b/src/blockinput.h @@ -49,7 +49,7 @@ Boston, MA 02110-1301, USA. */ interrupt_input_pending to a non-zero value. If that flag is set when input becomes unblocked, UNBLOCK_INPUT will send a new SIGIO. */ -extern int interrupt_input_blocked; +extern volatile int interrupt_input_blocked; /* Nonzero means an input interrupt has arrived during the current critical section. */ diff --git a/src/keyboard.c b/src/keyboard.c index ca1c1d5168f..48cf2673a90 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -90,7 +90,7 @@ extern int errno; /* Variables for blockinput.h: */ /* Non-zero if interrupt input is blocked right now. */ -int interrupt_input_blocked; +volatile int interrupt_input_blocked; /* Nonzero means an input interrupt has arrived during the current critical section. */